#include "welcome.h"
#include "ui_welcome.h"
#include "login.h"
#include "loginmanage.h"

welcome::welcome(QWidget *parent) :
        QWidget(parent),
        ui(new Ui::welcome)
{
        ui->setupUi(this);
        connect(ui->pushButton_login, SIGNAL(clicked()),
                this, SLOT(handleLogin()));
        connect(ui->pushButton_loginmanage, SIGNAL(clicked()),
                this, SLOT(handleLoginmanage()));

}

welcome::~welcome()
{
        delete ui;
}

void welcome::handleLogin() {
        login *lg = new login();
        lg->show();
}

void welcome::handleLoginmanage() {
        loginmanage *lgm = new loginmanage();
        lgm->show();
}


